/*
 * Copyright (c) 2008-2010, Petr Panteleyev
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 * 
 *    1. Redistributions of source code must retain the above copyright notice, 
 *       this list of conditions and the following disclaimer.
 *    2. Redistributions in binary form must reproduce the above copyright notice, 
 *       this list of conditions and the following disclaimer in the documentation 
 *       and/or other materials provided with the distribution.
 *    3. The name of the author may not be used to endorse or promote products 
 *       derived from this software without specific prior written permission.
 *  
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 
 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package org.panteleyev.wordpress;

import java.util.ResourceBundle;

import org.panteleyev.utilities.ArrayResourceBundle;

/**
 *
 * @author Petr Panteleyev
 */
enum L10N {
    /* Misc */
    WORDPRESS_MENU_NAME(11),

    /* Actions */
    WORDPRESS_UPLOAD_FILE_ACTION(12),

    PROF_DIALOG_TIME_CORRECTION_LABEL(13),

    PAGES_ACTION(14),
    COMMENTS_ACTION(17),
    PAGES_WINDOW_TITLE(15),
    AUTHORS_ACTION(36),
    
    /* PostWindow */
    POST_WINDOW_STATUS_OPEN(0),
    POST_WINDOW_STATUS_CLOSED(1),
    POST_WINDOW_STATUS_DEFAULT(2),    
    POST_WINDOW_COMMENTS_LABEL(3),
    POST_WINDOW_PING_STATUS_LABEL(4),
    POST_WINDOW_SUBJECT_LABEL(5),
    POST_WINDOW_PREVIEW_BUTTON(6),
    POST_WINDOW_POST_BUTTON(7),
    POST_WINDOW_MANUAL_DATE_CHECKBOX(8),
    POST_WINDOW_LABELS_LABEL(9),
    POST_WINDOW_CATEGORIES_BUTTON(10),

    COMMENTS_FRAME_TITLE(16),
    COMMENTS_MENU_NAME(33),

    COMMENTS_MODERATION_FRAME_TITLE(18),
    COMMENTS_MODERATION_AUTHOR(19),
    COMMENTS_MODERATION_DATE(20),
    COMMENTS_MODERATION_POST_TITLE(21),
    COMMENTS_MODERATION_POST_STATUS(22),

    COMMENT_DELETE_ACTION(23),
    COMMENT_REPLY_ACTION(24),
    COMMENT_SPAM_ACTION(25),
    COMMENT_EDIT_ACTION(26),
    COMMENT_NEW_ACTION(32),
    COMMENT_APPROVE_ACTION(34),
    COMMENT_HOLD_ACTION(35),

    AUTHORS_FRAME_TITLE(37),

    COMM_DIAL_AUTHOR(27),
    COMM_DIAL_EMAIL(28),
    COMM_DIAL_URL(29),
    COMM_DIAL_STATUS(30),
    COMM_DIAL_TITLE(31);

    private String l10nValue;
    
    public String s() {
        return l10nValue;
    }

    L10N(int key) {
        l10nValue = ((ArrayResourceBundle)ResourceBundle.getBundle("org.panteleyev.wordpress.L10NStrings")).getString(key);
    }    
}
